package com.quwan.manager.service;

import com.quwan.common.result.PageResult;
import com.quwan.entity.TVipRights;

import java.util.List;

/**
 * @author laozhang
 * @date 2022/3/17
 */
public interface IVipRightsService {
    /**
     * 获取权益配置列表 分页
     * @param page
     * @param size
     * @param name
     * @return
     */
    PageResult<TVipRights>  getTVipRightsListPage(int page, int size, String name);
    /**
     * 获取权益配置列表
     * @param name
     * @return
     */
    List<TVipRights> getVipRightsList(String name);
    /**
     * 增加权益配置
     * @param vipRights
     * @return
     */
    boolean addTVipRights(TVipRights vipRights);
    /**
     * 修改权益配置
     * @param vipRights
     * @return
     */
    boolean updateTVipRights(TVipRights vipRights);
    /**
     * 权益配置详情
     * @param id
     * @return
     */
    TVipRights detailTVipRights(Integer id);
    /**
     * 删除权益配置
     * @param id
     * @return
     */
    boolean delTVipRights(Integer id);

}
